Xbasic

SetPrimaryProcessor Function

Syntax

ResultFlag as L = SetPrimaryProcessor(CPUIndex as N)

Arguments

ResultFlag

Numeric. .T. (TRUE) if the assignment was successful. .F. (FALSE) if the assignment failed.

CPUIndex

The number of the processor. The first processor is 0. Numeric

Description

Set the index of the primary CPU for the process. The SetPrimaryProcessor() function sets the primary processor. If the value is less than zero or greater than the number of CPUs - 1, the function returns .F. .

Example

This example sets Alpha Anywhere to run on the first processor.

? SetPrimaryProcessor(0)
= .T.

See Also